/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

/**
 * <p>Project: jse2303 - For2
 * <p>Powered by webrx On 2023-07-11 14:36:57
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class For2 {
    public static void main(String[] args) {
        //输出1 2 3 4 5
        for (var i = 1; ; i++) {
            if (i % 2 == 0) {
                System.out.println(i);
            }
        }
    }
}
